﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BiografController.ServiceReference;
namespace BiografController
{
    public class BetalingController
    {
        IRemoteBookingSystem cli;

        public BetalingController()
        {
            cli = new RemoteBookingSystemClient();
        }

        public int NyBetaling(DateTime betalingsDato, bool betalingsStatus)
        {
            return cli.InsertBetaling(betalingsDato, betalingsStatus);
        }

        public void EditBetaling(int betalingsId, DateTime betalingsDato, bool betalingsStatus)
        {
            cli.EditBetaling(betalingsId, betalingsDato, betalingsStatus);
        }

        public List<Betaling> AlleBetalinger()
        {
            return cli.AlleBetalinger().ToList();
        }

        public Betaling GetEnBetaling(int betalingsId)
        {
            return cli.GetEnBetaling(betalingsId);
        }
    }
}
